/*!
 * Basis javasript library 
 * http://code.google.com/p/basis-js/
 *
 * @copyright
 * Copyright (c) 2006-2010 Roman Dvornov.
 *
 * @license
 * GNU General Public License v2.0 <http://www.gnu.org/licenses/gpl-2.0.html>
 */

/**
 * Vista style for Basis.Controls.Calendar
 */

  .Basis-Calendar
  {
    background-color: white;
    width: 218px;
    font-size: 9pt;
    font-family: Tahoma, sans-serif;
    -moz-user-select: none;
  }

  /*
   * HEADER
   */

  .Basis-Calendar-Header
  {
    float: left;
    width: 100%;
  }
  .Basis-Calendar-Header .disabled
  {
    -khtml-opacity: .25;
    -moz-opacity: .25;
    opacity: .25;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=25)";
    filter: alpha(opacity: 25);
  }

  .Basis-Calendar-MovePrevButton,
  .Basis-Calendar-MoveNextButton,
  .Basis-Calendar-CancelButton
  {
    line-height: 1em;
    width: 15%;
    padding: .4em 0 .6em;
    text-align: center;
    cursor: pointer;
    position: relative;
    font-weight: bold;
  }
  .Basis-Calendar-Header SPAN.over
  {
    position: absolute;
    display: block;
    width: 100%;
    height: 2em;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
  }
  .Basis-Calendar-MovePrevButton:hover,
  .Basis-Calendar-MoveNextButton:hover
  {
    color: #0066CC;
  }

  .Basis-Calendar-MovePrevButton
  {
    float: left;
  }
  .Basis-Calendar-MoveNextButton
  {
    float: right;
  }
  .Basis-Calendar-CancelButton
  {
    float: right;
    width: 8%;
    padding: .6em 0 .8em 0;
    display: none;
    font-family: Verdana;
    font-size: 10px;
    background-color: #F4F4F4;
  }
  .Basis-Calendar-CancelButton:hover
  {
    color: #DD0000;
  }

  .Basis-Calendar-MovePrevButton SPAN
  {
    background-image: url(arrow_left.gif);
  }
  .Basis-Calendar-MovePrevButton SPAN:hover
  {
    background-image: url(arrow_left_hover.gif);
  }
  .Basis-Calendar-MoveNextButton SPAN
  {
    background-image: url(arrow_right.gif);
  }
  .Basis-Calendar-MoveNextButton:hover SPAN
  {
    background-image: url(arrow_right_hover.gif);
  }

  .Basis-Calendar-Title
  {
    padding: .4em 0 .6em;
    line-height: 1em;
    text-align: center;
    cursor: pointer;
    display: none;
    color: black;
    text-decoration: none;
  }
  .Basis-Calendar-Title:hover
  {
    color: #0066CC;
  }

  .Basis-Calendar-SectionTabs
  {
    text-align: center;
    padding-top: 4px;
  }
  .Basis-Calendar-SectionTab
  {
    display: inline-block;
    padding: 2px 1ex;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    cursor: pointer;
  }
  .Basis-Calendar-SectionTab:hover
  {
    background: #F8F8F8;
  }
  .Basis-Calendar-SectionTabs .selected
  {
    background: #DAEEF8;
    cursor: default;
  }

  /*
   *  FOOTER
   */

  .Basis-Calendar-Footer
  {
    padding: .25em 30px;
    text-align: center;
  }

  .Basis-Calendar-Footer LABEL
  {
    padding-right: 1ex;
  }
  .Basis-Calendar-Footer .value
  {
    cursor: pointer;
    color: black;
    text-decoration: none;
  }
  .Basis-Calendar-Footer .value:hover
  {
    color: #0066CC;
  }

  /*
   * BODY
   */

  .Basis-Calendar-Body
  {
    clear: both;
    margin: 0 18px;
    border: 3px solid #DAEEF8;
    -moz-border-radius: 0 0 3px 3px;
    position: relative;
  }
  .Basis-Calendar-Content
  {
    height: 10.5em;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
  }
  .Basis-Calendar-ButtonPrevPeriod,
  .Basis-Calendar-ButtonNextPeriod
  {
    width: 14px;
    padding: 1em 0;
    line-height: 1em;
    position: absolute;
    background: #F0F0F0;
    color: #444;
    top: -3px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
  }
  .Basis-Calendar-ButtonPrevPeriod
  {
    right: 100%;
    margin-right: 3px;
    -moz-border-radius: 3px 0 0 3px;
  }
  .Basis-Calendar-ButtonNextPeriod
  {
    left: 100%;
    margin-left: 3px;
    -moz-border-radius: 0 3px 3px 0;
  }
  .Basis-Calendar-ButtonPrevPeriod:hover,
  .Basis-Calendar-ButtonNextPeriod:hover
  {
    background: #DAEEF8;
    color: #0066CC;
  }
  .Basis-Calendar-ButtonPrevPeriod SPAN.over,
  .Basis-Calendar-ButtonNextPeriod SPAN.over
  {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    background: url() no-repeat center center;
    top: 0;
    left: 0;
    opacity: .5;
  }

  .Basis-Calendar-Body *
  {
    line-height: 1em !important;
  }

  .Basis-Calendar-Section
  {
    height: 10.5em;
    float: left;
    width: 100%;
    position: absolute;
    background-color: white;
  }

  /* century, year, month */

  .Basis-Calendar-Section-Century .decade,
  .Basis-Calendar-Section-YearDecade .year,
  .Basis-Calendar-Section-Year .month
  {
    width: 25%;
    padding: 1.25em 0;
  }
  .Basis-Calendar-Section-Century .decade
  {
    padding: .75em 0;      
  }

  /* quarter */

  .Basis-Calendar-Section-YearQuarter .quarter
  {
    width: 50%;
    padding: 2.125em 0;
  }
  .Basis-Calendar-Section-Quarter .month
  {
    width: 100%;
    padding: 1.25em 0;
  }

  /* day */
  .Basis-Calendar-Section-Month .week
  {
    width: 100%;
  }
  .Basis-Calendar-Section-Month .day
  {
    width: 14.2857%;
    padding: .26em 0;
  }
  .Basis-Calendar-Section-Month .day:nth-child(7n),
  .Basis-Calendar-Section-Month .day:nth-child(7n + 1)
  {
    background: #F8F8F8;
    border-left: 1px solid #E0E0E0;
    margin: 0 0 0 -1px
  }

  .Basis-Calendar-Section-Month .week_days
  {
    float: left;
    width: 100%;
    padding-bottom: .2em;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 1px;
  }
  .Basis-Calendar-Section-Month .week_days DIV
  {
    width: 14.2857%;
  }

  /* common */

  .Basis-Calendar-Section A,
  .Basis-Calendar-Section-Month .week_days DIV
  {
    color: black;
    text-decoration: none;
    text-align: center;

    display: block;
    float: left;

    cursor: pointer;
  }

  .Basis-Calendar-Body .Basis-Calendar-Section .disabled,
  .Basis-Calendar-Body .Basis-Calendar-Section .disabled:hover
  {
    background: #CCCCCC !important;
    outline: none !important;
    cursor: default !important;
    color: black !important;
  }

  .Basis-Calendar-Body .before,
  .Basis-Calendar-Body .before:hover,
  .Basis-Calendar-Body .after,
  .Basis-Calendar-Body .after:hover
  {
    color: #999999 !important;
  }

  .Basis-Calendar-Body .decade:hover,
  .Basis-Calendar-Body .year:hover,
  .Basis-Calendar-Body .month:hover,
  .Basis-Calendar-Body .quarter:hover,
  .Basis-Calendar-Body .day:hover
  {
    background: #F0F0F0;
    -moz-border-radius: 3px;
  }
  .Basis-Calendar-Body .Basis-Calendar-Section .selected
  {
    background: #EAF7FF;
    color: #0066CC;
    outline: none;
    -moz-border-radius: 3px;
  }
